package com.sanben.region.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author cyh
 * @description: 城市表实体类
 * @date: 2020-08-11
 */
@Data
@ApiModel(value = "ProvinceCityDistrict对象", description = "城市表")
@TableName("province_city_district")
public class Region implements Serializable {

    @TableId(value = "code", type = IdType.NONE)
    private Integer code;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("级别")
    private Integer level;

    @ApiModelProperty("父级code")
    private Integer parentCode;

    @ApiModelProperty("全部code")
    private String fullCode;

    @ApiModelProperty("全名称")
    private String fullName;

    @ApiModelProperty(value = "是否是热门 1是 0不是")
    private Integer isHot;

    @ApiModelProperty(value = "拼音首字母")
    private String pinyin;

}
